package authentication

import grails.test.mixin.*
import spock.lang.*

@TestFor(LoginController)
@Mock(User)
class LoginControllerSpec extends Specification {

    void "Test the index action returns the correct model when no user is logged on"() {

        when:"The index action is executed"
            controller.index()

        then:"The model is correct"
            !model.authorInstanceList
            model.authorInstanceCount == 0
    }
    
    
}
